const seq = require('sequelize')

exports.create_date = {
  create_timestamp: {
    // 创建时间戳
    type: seq.BIGINT(50),
    comment: '创建时间戳',
    field: 'create_timestamp',
    defaultValue: () => {
      return Date.now()
    } /* 时间戳 */
  }
}

exports.update_date = {
  update_timestamp: {
    // 更新时间戳
    type: seq.BIGINT(30),
    comment: '更新时间戳',
    field: 'update_timestamp'
  }
}

exports.delete_date = {
  delete_timestamp: {
    // 更新时间戳
    type: seq.BIGINT(30),
    comment: '删除时间戳',
    field: 'delete_timestamp'
  }
}

exports.create_by = {
  create_by: {
    // 创建时间戳
    type: seq.STRING(64),
    comment: '创建人',
    field: 'create_by',
  }
}

exports.update_by = {
  update_by: {
    // 更新时间戳
    type: seq.STRING(64),
    comment: '更新人',
    field: 'update_by'
  }
}

exports.delete_by = {
  delete_by: {
    // 更新时间戳
    type: seq.STRING(64),
    comment: '删除人',
    field: 'delete_by'
  }
}

